/**
 * Created by bigben on 2017/5/4.
 */

import Vue from 'vue'
import VueRouter from 'vue-router'
import routes from './router'
import VueResource from 'vue-resource'
import './config/rem'
import FastClick from 'fastclick'
import 'swiper'
import 'swiper/dist/css/swiper.css'

import './style'

if ('addEventListener' in document) {
	document.addEventListener('DOMContentLoaded', function() {
		FastClick.attach(document.body);
	}, false);
}

Vue.use(VueResource)
Vue.use(VueRouter)
let router = new VueRouter({
	routes: routes,
	mode: 'history'
})

new Vue({
	router
}).$mount('#app')










